import {request, silentRequest} from "../request"

/**
 * 登录
 * @param data
 */
export const login = (data: object) => request.post("login", data)

/**
 * 获取用户信息
 */
export const getUser = () => silentRequest.get("user/getUser")

/**
 * 注册
 */
export const register = (data: object) => request.post("register", data)

/**
 * 更新用户信息
 */
export const updateUser = (data: object) => request.post("user/updateUserInfo", data)